package com.sena.engine.common.exception;

import com.sena.engine.enums.SnmpResultCodeEnum;

public class SenaSnmpRunTimeException extends Exception {

    private SnmpResultCodeEnum resultCodeEnum;

    public SenaSnmpRunTimeException(SnmpResultCodeEnum resultCodeEnum, String message) {
        super(message);
        this.resultCodeEnum = resultCodeEnum;
    }

    public SenaSnmpRunTimeException(String message) {
        super(message);
        this.resultCodeEnum = SnmpResultCodeEnum.FILE_NOT_FOUND;
    }


    public SenaSnmpRunTimeException(SnmpResultCodeEnum resultCodeEnum) {
        super(resultCodeEnum.getDescription());
        this.resultCodeEnum = resultCodeEnum;
    }

    public SnmpResultCodeEnum getResultCodeEnum() {
        return resultCodeEnum;
    }

    public void setResultCodeEnum(SnmpResultCodeEnum resultCodeEnum) {
        this.resultCodeEnum = resultCodeEnum;
    }
}
